package  
{
	import org.flixel.*;
	
	public class GameTitle 
	{	
		/*
		 * Function generates name of game by randomly selecting 1st word then randomly selecting the second word based on a subset
		 * of words that work well with the first.
		 * */
		public static function getTitle():String
		{
			var tempString:String;
			
			switch((int)(Math.random() * 6))
			{
			case 0:
				tempString = "Space";
				tempString += " ";
				switch((int)(Math.random() * 5))
				{
				case 0:
					tempString += "Rescue";
					break;
				case 1:
					tempString += "Quest";
					break;
				case 2:
					tempString += "Adventure";
					break;
				case 3:
					tempString += "Journey";
					break;
				case 4:
					tempString += "Peril";
					break;
				}
				break;
			case 1:
				tempString = "Planetary";
				tempString += " ";
				switch((int)(Math.random() * 5))
				{
				case 0:
					tempString += "Rescue";
					break;
				case 1:
					tempString += "Quest";
					break;
				case 2:
					tempString += "Adventure";
					break;
				case 3:
					tempString += "Peril";
					break;
				case 4:
					tempString += "Search";
					break;
				}
				break;
			case 2:
				tempString = "Cosmic";
				tempString += " ";
				switch((int)(Math.random() * 6))
				{
				case 0:
					tempString += "Rescue";
					break;
				case 1:
					tempString += "Quest";
					break;
				case 2:
					tempString += "Adventure";
					break;
				case 3:
					tempString += "Journey";
					break;
				case 4:
					tempString += "Peril";
					break;
				case 5:
					tempString += "Search";
					break;
				}
				break;
			case 3:
				tempString = "Science";
				tempString += " ";
				switch((int)(Math.random() * 4))
				{
				case 0:
					tempString += "Rescue";
					break;
				case 1:
					tempString += "Quest";
					break;
				case 2:
					tempString += "Adventure";
					break;
				case 3:
					tempString += "Journey";
					break;
				}
				break;
			case 4:
				tempString = "Rocket";
				tempString += " ";
				switch((int)(Math.random() * 6))
				{
				case 0:
					tempString += "Rescue";
					break;
				case 1:
					tempString += "Quest";
					break;
				case 2:
					tempString += "Adventure";
					break;
				case 3:
					tempString += "Journey";
					break;
				case 4:
					tempString += "Peril";
					break;
				}
				break;
			case 5:
				tempString = "Galactic";
				tempString += " ";
				switch((int)(Math.random() * 6))
				{
				case 0:
					tempString += "Rescue";
					break;
				case 1:
					tempString += "Quest";
					break;
				case 2:
					tempString += "Adventure";
					break;
				case 3:
					tempString += "Journey";
					break;
				case 4:
					tempString += "Peril";
					break;
				case 5:
					tempString += "Search";
					break;
				}
				break;
			}
			
			return tempString;
		}
		
	}

}